-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable constraints and runtime measurement for Reshape and Mean Ops #2273
Conversation
34107c9
to
a318e59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (1/1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @arminaleTT, it was a pleasure meeting you in Austin!
The change looks good to me, only commentary I have is on the usage of auto
- I've linked to our coding guidelines that cover this topic.
bd84a76
to
324991c
Compare
324991c
to
1e59ddf
Compare
…2273) ### Ticket #2041 #2042 ### Problem description To enable llama to go through the optimizer, we need constraints and runtime APIs for all ops (tracked in #2084). This PR enables these APIs for `mean` and `reshape`. ### What's changed - Added `getOpRuntime()` and `getOpConstraints()` interface methods to `ReshapeOp` and `MeanOp` - Added unit tests for both APIs on both Ops - Closes #2041 - Closes #2042 Note: This PR seems long for a "simple" integration change because both APIs require a manual translation of mlir types down to ttnn types. As a result, opportunities for sharing code across Ops is limited. About 1/3rd of the diff is in unit tests ### Checklist - [x] New/Existing tests provide coverage for changes
Ticket
#2041
#2042
Problem description
To enable llama to go through the optimizer, we need constraints and runtime APIs for all ops (tracked in #2084). This PR enables these APIs for
mean
andreshape
.What's changed
getOpRuntime()
andgetOpConstraints()
interface methods toReshapeOp
andMeanOp
Note: This PR seems long for a "simple" integration change because both APIs require a manual translation of mlir types down to ttnn types. As a result, opportunities for sharing code across Ops is limited. About 1/3rd of the diff is in unit tests
Checklist